import request from '@/utils/request'

//上传图片
export function fileUpload(params) {
  return request({
    url: 'api/upload/fileUpload',
    method: 'post',
    data: params
  })
}
// base64上传
export function baseUpload(image) {
  return request({
    url: 'api/upload/baseUpload',
    method: 'post',
    data: {
      image
    }
  })
}